package com.candy.entity;

import org.springframework.stereotype.Component;

@Component
public class Order {
    private Integer id;
    private Integer userId;
    private Integer productId;
    private Integer number;
    private Double price;
    private Double amount;
    private String productName;
    private String username;

    public Order() {
    }

    public Order(Integer id, Integer userId, Integer productId, Integer number, Double price, Double amount, String productName, String username) {
        this.id = id;
        this.userId = userId;
        this.productId = productId;
        this.number = number;
        this.price = price;
        this.amount = amount;
        this.productName = productName;
        this.username = username;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public Integer getProductId() {
        return productId;
    }

    public void setProductId(Integer productId) {
        this.productId = productId;
    }

    public Integer getNumber() {
        return number;
    }

    public void setNumber(Integer number) {
        this.number = number;
    }

    public Double getPrice() {
        return price;
    }

    public void setPrice(Double price) {
        this.price = price;
    }

    public Double getAmount() {
        return amount;
    }

    public void setAmount(Double amount) {
        this.amount = amount;
    }

    public String getProductName() {
        return productName;
    }

    public void setProductName(String productName) {
        this.productName = productName;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }
}
